package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallGoodsSpecific;
import com.appkubes.mall.core.po.MallGoodsSpecificExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallGoodsSpecificMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSpecificSqlProvider.class, method="countByExample")
    long countByExample(MallGoodsSpecificExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallGoodsSpecificSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallGoodsSpecificExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_goods_specific",
        "where goods_specific_key = #{goodsSpecificKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String goodsSpecificKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_goods_specific (goods_specific_key, app_key, ",
        "goods_key, specific_data, ",
        "specific_dim1, specifc_dim2, ",
        "specifc_dim3, create_time, ",
        "update_time, version)",
        "values (#{goodsSpecificKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{goodsKey,jdbcType=VARCHAR}, #{specificData,jdbcType=VARCHAR}, ",
        "#{specificDim1,jdbcType=VARCHAR}, #{specifcDim2,jdbcType=VARCHAR}, ",
        "#{specifcDim3,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}, ",
        "#{updateTime,jdbcType=INTEGER}, #{version,jdbcType=INTEGER})"
    })
    int insert(MallGoodsSpecific record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallGoodsSpecificSqlProvider.class, method="insertSelective")
    int insertSelective(MallGoodsSpecific record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSpecificSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="goods_specific_key", property="goodsSpecificKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="specific_data", property="specificData", jdbcType=JdbcType.VARCHAR),
        @Result(column="specific_dim1", property="specificDim1", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifc_dim2", property="specifcDim2", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifc_dim3", property="specifcDim3", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallGoodsSpecific> selectByExampleWithRowbounds(MallGoodsSpecificExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSpecificSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="goods_specific_key", property="goodsSpecificKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="specific_data", property="specificData", jdbcType=JdbcType.VARCHAR),
        @Result(column="specific_dim1", property="specificDim1", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifc_dim2", property="specifcDim2", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifc_dim3", property="specifcDim3", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallGoodsSpecific> selectByExample(MallGoodsSpecificExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "goods_specific_key, app_key, goods_key, specific_data, specific_dim1, specifc_dim2, ",
        "specifc_dim3, create_time, update_time, version",
        "from mall_goods_specific",
        "where goods_specific_key = #{goodsSpecificKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="goods_specific_key", property="goodsSpecificKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="specific_data", property="specificData", jdbcType=JdbcType.VARCHAR),
        @Result(column="specific_dim1", property="specificDim1", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifc_dim2", property="specifcDim2", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifc_dim3", property="specifcDim3", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    MallGoodsSpecific selectByPrimaryKey(String goodsSpecificKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallGoodsSpecificSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallGoodsSpecific record, @Param("example") MallGoodsSpecificExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallGoodsSpecificSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallGoodsSpecific record, @Param("example") MallGoodsSpecificExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallGoodsSpecificSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallGoodsSpecific record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods_specific
     *
     * @mbg.generated
     */
    @Update({
        "update mall_goods_specific",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "goods_key = #{goodsKey,jdbcType=VARCHAR},",
          "specific_data = #{specificData,jdbcType=VARCHAR},",
          "specific_dim1 = #{specificDim1,jdbcType=VARCHAR},",
          "specifc_dim2 = #{specifcDim2,jdbcType=VARCHAR},",
          "specifc_dim3 = #{specifcDim3,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "version = #{version,jdbcType=INTEGER}",
        "where goods_specific_key = #{goodsSpecificKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallGoodsSpecific record);
}